RmFile

Category: Files

Syntax:
RmFile filename

Deletes the named file. If the file cannot be deleted, an EInOutError exception will be raised.

Example:
RmFile $GetPath()temp.txt

Try
  @l $filename = $?="Enter a file name to delete:"
  RmFile $filename
  MessageBox Successfully deleted.
Except
  MessageBox Unable to delete! $ExceptMsg
EndTry

See also: CreateFile, RmDir


Previous in "Files": RmDir
Next by name: RStrPos
Previous by name: RmDir
Up to all commands by name or commands and functions by category